<template>
  <div>
    <h2>总价值: {{ $store.getters.totalPrice }}</h2>
    <h2>总价值: {{ $store.getters.totalPriceCountGreaterN(3) }}</h2>
    <h2>{{ nameInfo }}</h2>
    <h2>{{ ageInfo }}</h2>
    <h2>{{ heightInfo }}</h2>
  </div>
</template>

<script>
import { useGetters } from "../hooks/useGetters";
export default {
  setup() {
    const storeGetters = useGetters(["nameInfo", "ageInfo", "heightInfo"]);
    return {
      ...storeGetters,
    };
  },
};
</script>

<style scoped>
</style>